home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / gnu / a2_0b_Emacs_sr.lha / Emacs-19.25 / compile.doc < prev    next >
Text File  |  1995-01-08  |  2KB  |  49 lines

  1. To compile emacs, you will need SAS C 6.x. I use 6.51. If you try to
  2. make it work with Aztec C or gcc, you might run into difficulties with
  3. the dumping code:
  4. - The "small" data model (A4-relative) is used, to get all the variables
  5.   in one hunk.
  6. - Some variables are declared with the "far" attribute to get them out
  7.   of this hunk (and the dumping code depends on this). Move these to
  8.   the amiga_data.c module (which is for variables that shouldn't be
  9.   dumped).
  10. You will also need dgay's 'unix compatibility' library which should have been
  11. distributed alongside emacs.
  12.  
  13. To compile:
  14.  
  15. a) Install the 'unix compatibility' library.
  16.     As I recall, this is available on aminet under the name
  17.     "unix*.lha" or somesuch.
  18.  
  19. b) Install as usual (see INSTALLATION).
  20.  
  21. c) Compile the C preprocessor (SAS's one has problems ...):
  22.  
  23.      cd gnuemacs:cpp
  24.      smake
  25.  
  26.    When the preprocessor is running, it needs to find uncompacted versions
  27.    of the include files. If you only installed the compacted include files,
  28.    you will have to install the uncompacted ones somewhere.
  29.  
  30.    You can check your type of include files by looking to see if (eg)
  31.    include:stdio.h is a readable text file (all is ok) or contains binary 
  32.    characters (you have the compacted files).
  33.  
  34.    I've personally had trouble compiling this.  I'll include my copy.
  35.  
  36. e) Compile & dump emacs
  37.  
  38.      stack 100000
  39.      cd gnuemacs-19.25:src
  40.      smake
  41.      copy temacs /
  42.  
  43.    (This takes around 20 minutes from scratch on an A2500/30).
  44.  
  45. If all goes well, you should have a new version of emacs ...
  46.  
  47. [Note: The DOC strings are not remade for some reason. To change this,
  48. edit ymakefile and remove the comment from the rule for xemacs]
  49.